CallLogs

interface CallLogs

This module provides methods for interacting with the user's call logs and managing the call logs of hunting groups in which the user is present.

This interface can be used to retrieve call logs, group them by contact, and filter them by unread status. Additionally, users can mark call logs as read, delete them, or listen for changes in the list of call logs to be notified of modifications in real time.

Detailed information about each call log entry is available through the CallLog object, which encapsulates all relevant data for individual call logs.

Samples

com.ale.rainbowsdk.samples.CallLogsSample

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Interface defining callbacks for handling events related to call logs within hunting groups.

Link copied to clipboard

Interface defining callbacks for handling events related to Call Logs within the SDK.

Properties

Link copied to clipboard
abstract val callLogs: ArrayItemList<CallLog>

Retrieves the user's call logs.

Link copied to clipboard
abstract val groupedCallLogs: List<CallLogGroup>

Retrieves the user's call logs grouped by contact.

Link copied to clipboard
abstract val groupedMissedCallLogs: List<CallLogGroup>

Retrieves the user's missed call logs grouped by contact.

Link copied to clipboard
abstract val missedCallLogs: List<CallLog>

Retrieves the user's missed call logs.

Link copied to clipboard
abstract val missedCounter: Int

Retrieves the count of missed calls.

Functions

Link copied to clipboard
abstract fun deleteAllCallLogs(listener: RainbowListener<Unit, Unit>? = null)

Deletes all call logs for the user.

Link copied to clipboard
abstract fun deleteAllCallLogsForGroups(callLogGroups: List<CallLogGroup>, listener: RainbowListener<Unit, Unit>?)

Deletes all call logs for the specified groups.

Link copied to clipboard
abstract fun deleteAllCallLogsForHuntingGroup(groupId: String?, listener: RainbowListener<Unit, Unit>? = null)

Deletes all call logs for a specific hunting group.

Link copied to clipboard
abstract fun deleteCallLogs(callLogs: List<CallLog>, listener: RainbowListener<Unit, Unit>? = null)

Deletes the specified call logs.

Link copied to clipboard
abstract fun deleteCallLogsForHuntingGroup(groupId: String?, callLogs: List<GroupCallLog>, listener: RainbowListener<Unit, Unit>? = null)

Deletes specific call logs for a given hunting group.

Link copied to clipboard
abstract fun fetchCallLogs(listener: RainbowListener<List<CallLog>, Unit>? = null)

Fetches all call logs for the user.

Link copied to clipboard
abstract fun fetchCallLogsForHuntingGroup(groupId: String?, listener: RainbowListener<List<GroupCallLog>, Unit>? = null)

Fetches call logs for a specific hunting group.

Link copied to clipboard
abstract fun getCallLogsGroupForContact(contactUniqueId: String?): CallLogGroup?

Retrieves the call logs group associated with a specific contact.

Link copied to clipboard
abstract fun getHuntingGroupCallLogs(groupId: String?): List<GroupCallLog>

Retrieves the call logs for a specific hunting group.

Link copied to clipboard
abstract fun getHuntingGroupMissedCounter(groupId: String?): Int

Retrieves the count of missed calls for a specific hunting group.

Link copied to clipboard
abstract fun getMissedCallLogsGroupForContact(contactUniqueId: String?): CallLogGroup?

Retrieves the missed call logs group associated with a specific contact.

Link copied to clipboard
abstract fun markAllCallLogsAsRead()

Marks all call logs as read.

Link copied to clipboard
abstract fun markAllCallLogsAsReadForHuntingGroup(groupId: String?)

Marks all call logs as read for a specific hunting group.

Link copied to clipboard
abstract fun markCallLogAsRead(callLog: CallLog)

Marks a specific call log as read.

Link copied to clipboard
abstract fun markCallLogsAsReadForGroup(callLogGroup: CallLogGroup)

Marks all call logs within a specific group as read.

Link copied to clipboard

Registers a listener for call logs events.

Link copied to clipboard

Registers a listener for hunting group call logs events.

Link copied to clipboard

Unregisters a previously registered call logs listener.

Link copied to clipboard

Unregisters a previously registered hunting group call logs listener.